package lab03.test04;

import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;

public class Test {

    public static void main(String[] args) {
        String path="F:\\hello.txt";
        BufferedReader bufferedReader=null;

        try {
            try {
                bufferedReader=new BufferedReader(new FileReader(path));
            } catch (FileNotFoundException e) {
                e.printStackTrace();
            }

            String line=null;

            while((line=bufferedReader.
                    readLine())!=null){

            }
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}